package com.agv.core.dao.dataExtractor;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.agv.core.objectDomain.MenuSelect;

public class MenuSelectRowMapper implements RowMapper {

	public MenuSelect mapRow(ResultSet rs, int index) throws SQLException {
		MenuSelect menuSelect = new MenuSelect();
		menuSelect.setIdCampo(rs.getObject("id"));
		menuSelect.setNbLeyenda(rs.getString("leyenda").trim());
		return menuSelect;
	}
}
